<admintpl file="header" />
</head>
<body class="J_scroll_ixed">
    <div class="wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:U('Stand/ad_index')}">广告列表</a></li>
		</ul>
        <div class="container">
                <div class="panel-group" id="accordion">
                  <div class="panel panel-default" style="margin-bottom: 20px;">
                    <div class="panel-heading">
                      <h4 class="panel-title">
                        <a data-toggle="collapse" data-parent="#accordion"  href="#collapseOne">广告信息 </a>
                      </h4>
                     </div>
                    <div id="collapseOne" class="panel-collapse collapse in">
                      <div class="panel-body">  
                        <table class="table" id="table1">
                                <caption>广告信息</caption>
                                      <tbody>
                                         <tr>
                                            <td width="8%">用户互动id</td>
                                            <td width="32%"><input value="{$model.user_uniq_id}" disabled class="form-control input-sm" type="text"></td>
                                            <td width="10%"></td>
                                            <td width="8%">广告类型</td>
                                            <td width="32%"><input value="{$adTypes[$model['type_id']]}" class="form-control input-sm" type="text"></td>
                                            <td width="10%"></td>
                                         </tr>
                                         <tr>
                                            <td width="8%">省份</td>
                                            <td width="32%"><input  value="{$areas[$model['province_id']]}" class="form-control input-sm" type="text"></td>
                                            <td width="10%"></td>

                                            <td width="8%">城市</td>
                                            <td width="32%"><input  value="{$areas[$model['city_id']]}" class="form-control input-sm" type="text"></td>
                                            <td width="10%"></td>
                                         </tr>
                                          <tr>
                                            <td width="8%">点击率</td>
                                            <td width="32%"><input  value="{$model['click_count']}" class="form-control input-sm" type="text"></td>
                                            <td width="10%"></td>
                                            <td width="8%">状态</td>
                                            	<?php
													$is_roll=array('1'=>'否','2'=>'是');
													$status=array('1'=>'待审批','2'=>'审批通过','3'=>'有效','4'=>'无效');
												?>
                                            <td width="32%"><input  value="{$status[$model['status']]}" class="form-control input-sm" type="text"></td>
                                            <td width="10%"></td>
                                         </tr>
                                         
                                         <tr>
                                            <td width="8%">到期日期</td>
                                            <td width="32%"><input  value="{$model.expire_date}" class="form-control input-sm" type="text"></td>
                                            <td width="10%"></td>
                                            <td width="8%">外链</td>
                                            <td width="32%"><input  value="{$model.link_url}" class="form-control input-sm" type="text"></td>
                                            <td width="10%"></td>
                                         </tr>
										
										 <tr>
                                            <td width="8%">广告名称</td>
                                            <td width="32%"><input  value="{$model.link_name}" class="form-control input-sm" type="text"></td>
                                            <td width="10%"></td>
                                            <td width="8%">备注</td>
                                            <td width="32%"><input  value="{$model.mark}" class="form-control input-sm" type="text"></td>
                                            <td width="10%"></td>
                                         </tr>
                                         
                                          <tr>
                                            <td width="8%">折扣率</td>
                                            <td width="32%"><input  value="{$model.discount_rate}" class="form-control input-sm" type="text"></td>
                                            <td width="10%"></td>
                                            <td width="8%">折扣名</td>
                                            <td width="32%"><input  value="{$model.discount_name}" class="form-control input-sm" type="text"></td>
                                            <td width="10%"></td>
                                         </tr>
                                          <tr>
                                            <td width="8%">展位id</td>
                                            <td width="32%"><input  value="{$model.stand_id}" class="form-control input-sm" type="text"></td>
                                            <td width="10%"></td>
                                            <td width="8%">总消费</td>
                                            <td width="32%"><input  value="{$model.spend}" class="form-control input-sm" type="text"></td>
                                            <td width="10%"></td>
                                         </tr>
                                      </tbody>
                            </table>
                      </div>
                    </div>
                  </div>


                  <div class="panel panel-default" style="margin-bottom: 20px;">
                    <div class="panel-heading">
                      <h4 class="panel-title">
                        <a data-toggle="collapse" data-parent="#accordion" href="#collapseTwo">图库</a>             
                      </h4>
                    </div>
                    <div id="collapseTwo" class="panel-collapse collapse in">
                          <div class="panel-body">
                            <table class="table table-striped table-bordered table-hover table-condensed" id="table2">
                                <caption>图库</caption>
                                        <thead>
                                        	<th>序号</th>
                                        	<th>图片</th>
                                        	<th>是否首图</th>
                                        </thead>
                                        <?php
                                            $count=0;
                                            $is_first=array('1'=>'不是','2'=>'是');
                                        ?>
                                        <tbody>
                                         <foreach name='imgs' item='vo' key='key'>
                                            <?php
                                                $count=$count+1;
                                            ?>
                                            <tr>
                                            	<td>{$count}</td>
                                                <td><a href="{$vo.icon}" target="_blank"><img src="{$vo.icon}" /></a></td>
                                                <td>{$is_first[$vo['is_first']]}</td>
                                            </tr>
                                         </foreach>
                                      </tbody>
                            </table>
                          </div>
                      </div>
                    </div>

                    
                  </div>
            </div>
        </div>
<script type="text/javascript">
  $(function(){
    $("input").attr('disabled',"disabled");
  });
</script>  
</body>
</html> 